﻿<Window x:Class="Net.Chirash.Twitter.TweetZone.WindowComponents.NotificationWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:my="clr-namespace:Net.Chirash.Twitter.TweetZone.WindowComponents"
		mc:Ignorable="d" 
		Title="NotificationWindow" d:DesignHeight="246" d:DesignWidth="612" SizeToContent="WidthAndHeight">
	<Window.Resources>
		<my:NotificationWindow x:Key="this" />
		<!--Animations-->
		<Storyboard x:Key="ShowStoryBoard">
			<DoubleAnimation To="0" From="{Binding HidedLocatin}"
							 Duration="0:0:1"
							 Storyboard.TargetName="MainGrid" 
							 Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<DoubleAnimation.EasingFunction>
					<ExponentialEase EasingMode="EaseOut" />
				</DoubleAnimation.EasingFunction>
			</DoubleAnimation>
			<DoubleAnimation From="0" To="{Binding UserDefinedOpacity}"
							 Duration="0:0:1"
							 Storyboard.TargetName="MainGrid"
							 Storyboard.TargetProperty="Opacity">
				<DoubleAnimation.EasingFunction>
					<ExponentialEase EasingMode="EaseOut" />
				</DoubleAnimation.EasingFunction>
			</DoubleAnimation>
		</Storyboard>
		<Storyboard x:Key="HideStoryboard">
			<DoubleAnimation From="0" To="{Binding HidedLocation}" 
							 Duration="0:0:1"
							 Storyboard.TargetName="MainGrid"
							 Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<DoubleAnimation.EasingFunction>
					<ExponentialEase EasingMode="EaseIn" />
				</DoubleAnimation.EasingFunction>
			</DoubleAnimation>
			<DoubleAnimation From="{Binding UserDefinedOpacity}" To="0"
							 Duration="0:0:1"
							 Storyboard.TargetName="MainGrid"
							 Storyboard.TargetProperty="Opacity">
				<DoubleAnimation.EasingFunction>
					<ExponentialEase EasingMode="EaseIn" />
				</DoubleAnimation.EasingFunction>
			</DoubleAnimation>
		</Storyboard>
	</Window.Resources>
	<Grid Name="MainGrid">
		<StackPanel Name="MainContents" Orientation="Vertical"/>
		<Grid.RenderTransform>
			<TransformGroup>
				<ScaleTransform />
				<RotateTransform />
				<TranslateTransform />
				<SkewTransform />
			</TransformGroup>
		</Grid.RenderTransform>
	</Grid>
</Window>
